package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.Appraise;
import com.sk.bilibili.dto.Res;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

@Mapper
public interface AppraiseMapper {

    @GET("appraise/getAppraise")
    Observable<Res<Appraise>> getAppraise(@Query("themId") Integer themId);

    @POST("appraise/add")
    Observable<Res<Void>> add(@Body Appraise appraise);

    @POST("appraise/update")
    Observable<Res<Void>> update(@Body Appraise appraise);

}